package gui;

import java.util.Comparator;

import logic.file.IFile;

public class FileSizeComparator implements Comparator<IFile> {

	@Override
	public int compare(IFile o1, IFile o2) {
		if ( o1.getSize() < o2.getSize() ) {
			return -1;
		}
		if (o1.getSize() > o2.getSize()) {
			return 1;
		}
		return 0;
	}
}

	
